package com.stockz.equity.indicator.vsa.pattern;

import java.util.List;

import org.springframework.stereotype.Component;

import com.stockz.equity.indicator.vsa.VsaBar;
import com.stockz.equity.model.Bar;

@Component
public class BullishSuccessfullTest extends VsaPattern {

	public BullishSuccessfullTest() {
		super("T", "Bullish Successfull Test", VsaPatternType.Bullish);
	}

	@SuppressWarnings("unused")
	@Override
	public void analyze(List<Bar> barList,List<VsaBar> vsaBarList, int index) {
		VsaBar vsaBar = vsaBarList.get(index);
		if(index < barList.size() -1){
			Bar current = barList.get(index);
			Bar previous = barList.get(index+1);
			
			/*if(current.getLow() < previous.getLow()
					&& current.getClose() > previous.getClose()
					&& current.getVolume() < previous.getVolume()){
				vsaBar.getVsaPatternList().add(this);
			}*/
			
			/*if((Spread.Narrow.equals(vsaBar.getSpread()) ||
					Spread.UltraNarrow.equals(vsaBar.getSpread()))
					&& Type.Down.equals(vsaBar.getType())
					&& (Volume.Low.equals(vsaBar.getVolume()) || Volume.Average.equals(vsaBar.getVolume()))
					&& !Region.OverBaught.equals(vsaBar.getRegion())
					&&( !Close.Low.equals(vsaBar.getClose()) || Type.Up.equals(vsaBar.getNextType()))){
				vsaBar.getVsaPatternList().add(this);
			}*/
		}
	}
}
